<template>
    <div class="productMsg" v-html="productDetail.details"></div>
</template>
<style lang="less">
    @import "../static/css/productDetail/productMsg.less";
</style>
<script>
    export default{
        data() {
            return {
                //商品详情信息
                productDetail:{},
            }
        },
        methods:{
            //请求商品详情的信息
            getProductDetail:function(){
                this.$http.get("http://127.0.0.1:3000/getproductdetail?id=2")
                    .then((data) => {
                        this.productDetail = data.body.data.data;
                    });
            }
        },
        created(){
            this.getProductDetail();
        }
    }
</script>

